/*
 * Copyright (c) 2017 5utrip.com. All Rights Reserved.
 */
package com.guoyu.project.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.guoyu.project.common.utils.ImageURLSerialize;
import com.guoyu.project.model.enums.CollegeType;

import java.util.List;

/**
 * School 学校
 *
 * @author: xblibo Wed Jun 21 16:01:34 CST 2017
 * @version 1.0.0
 */
public class School extends BaseModel {

    /**
     * 学校名称
     */
    private String name;
    /**
     * 学校图片
     */
    @JsonSerialize(using = ImageURLSerialize.class)
    private String picture;
    /**
     * 简介
     */
    private String summary;
    /**
     * 省份
     */
    private int provinceId;
    /**
     * 省份名称
     */
    private String provinceName;

    /**
     * 城市
     */
    private String city;

    /**
     * 地址
     */
    private String address;

    /**
     * 学校分类
     */
    private CollegeType category;

    /**
     * 排序,用于显示
     */
    private int displayOrder;

    /**
     * 学校的项目列表
     */
    private List<Article> projectList;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return city;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setCategory(CollegeType category) {
        this.category = category;
    }

    public CollegeType getCategory() {
        return category;
    }

    public void setDisplayOrder(int displayOrder) {
        this.displayOrder = displayOrder;
    }

    public int getDisplayOrder() {
        return displayOrder;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public List<Article> getProjectList() {
        return projectList;
    }

    public void setProjectList(List<Article> projectList) {
        this.projectList = projectList;
    }
}
